Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming
ON statement
Class files can define static visual objects. The standard Progress visual objects expose a well-defined set of events that an application can respond to, by using the
ONstatement. TheONstatement is supported in the main block of a class file. As noted previously, the main block cannot contain executable code. Therefore a class file cannot specify anONstatement within executable conditional logic, nor can it contain aWAIT-FORstatement in the main block. However, the main block can containONstatements that respond to a specific event that occurs on a static visual object.The following code demonstrates this capability:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |